<?php 
$this->calculatePageNumber();
if($this->getRecordCount() > 0):
?>
                <span><?php echo $this->getPageSizeText(); ?></span>
                <select onchange="javascript:location.href=this.value">
                <?php foreach(array(10,20,50,100) as $size): ?>
                            <option value="<?php echo $this->getPageSizeUrl($size); ?>"<?php echo $this->isCurrentSize($size)? ' selected="selected"': ''?>>
                                <?php echo $size; ?> 条/页
                            </option>
                <?php endforeach; ?>
                </select>
            <?php if($this->getPageCount() > 1): ?>
            <?php if(!$this->isFirstPage()): ?>
                            <a href="<?php echo $this->getPageIndexUrl(1) ?>">
                                <span><?php echo $this->getFirstPageText(); ?></span>
                            </a>
                            <a href="<?php echo $this->getPageIndexUrl($this->getPageIndex() - 1) ?>">
                                <span><?php echo $this->getPrevPageText(); ?></span>
                            </a>
            <?php endif; ?>
            <?php for($i = $this->getStartPage(); $i <= $this->getEndPage(); $i++):?>
                <?php if($this->isCurrentIndex($i)): ?>
                        <span><?php echo $this->getPageIndexText($i); ?></span>
                <?php else: ?>
                        <a href="<?php echo $this->getPageIndexUrl($i); ?>"><?php echo $this->getPageIndexText($i); ?></a>
                <?php endif ?>
            <?php endfor; ?>
            <?php if(!$this->isLastPage()): ?>
                <a href="<?php echo $this->getPageIndexUrl($this->getPageIndex() + 1) ?>">
                    <span><?php echo $this->getNextPageText(); ?></span>
                </a>
                <a href="<?php echo $this->getPageIndexUrl($this->getPageCount()) ?>">
                    <span><?php echo $this->getLastPageText(); ?></span>
                </a>
            <?php endif; ?>
            <?php endif; //if($this->pageCount() > 1)?>
                <input type="hidden" name="pagesize" value="<?php echo $this->getPageSize() ?>"/>
            <span><?php echo $this->getInformationText(); ?></span>

<?php endif;?>
